import request from '@/utils/request'

// 获取-权限点列表
export function getPermissionRequest() {
  return request({
    url: '/api/sys/permission',
    method: 'GET'
  })
}
// 获取-权限点详情
export function getPermissionRequestid(id) {
  return request({
    url: `/api/sys/permission/${id}`,
    method: 'GET'
  })
}

// 修改-权限点详情
export function putPermissionRequestid(data) {
  return request({
    url: `/api/sys/permission/${data.id}`,
    method: 'PUT',
    data
  })
}

// 新增-权限点
export function postPermissionRequest(data) {
  return request({
    url: '/api/sys/permission',
    method: 'POST',
    data
  })
}

// 删除-权限点
export function delPermissionRequest(id) {
  return request({
    url: `/api/sys/permission/${id}`,
    method: 'DELETE'
  })
}

